#include<iostream>
#include"httplib.h"

#define LOG(a){\
	std::cout<<a<<std::endl;\
}

using namespace httplib;

void hello(const Request& req,Response& resp)
{	
		(void) req;
		LOG("req_ok");
		resp.set_content("<html>hello</html>","text/html");
		LOG("resp_ok")
}

int main()
{
	Server server;
	LOG("server_ok");	
	server.Get(R"(/)",hello);
	LOG("listening....")
	server.listen("0.0.0.0",9094);
	return 0;

}

